﻿using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DomusDotNet.Sbm.Client.SL4.WCFServices;
using System.Collections.ObjectModel;
using System.Collections.Generic;

namespace DomusDotNet.Sbm.Client.SL4.Infrastructure
{
    public static class ModelExtensions
    {
        public static string GetStringMessage(this IEnumerable<Error> errors) {

            if (errors == null) return string.Empty;
            return string.Join("\n", errors.Select(x => x.Message));
        }
    }
}
